package com.zx.tradeclient.ctrl.index6;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.zx.base.ctrl.BaseActivity;
import com.zx.base.util.ActivityTaskManager;
import com.zx.tradeclient.R;
import com.zx.tradeclient.entity.CompanyInfo;

public class AboutCompanyActivity extends BaseActivity implements
		OnClickListener {
	/** Called when the activity is first created. */

	private TextView company_name;
	private TextView company_web;
	private TextView company_phone;
	private TextView company_fax;
	private TextView company_email;
	private TextView company_address;
	
	private Button back_btn;
	private Button enable_btn;
	
	private CompanyInfo com_info = new CompanyInfo();

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.company_about);

		if (!(ActivityTaskManager.getInstance()
				.containsName("AboutCompanyActivity"))) {
			ActivityTaskManager.getInstance().putActivity(
					"AboutCompanyActivity", this);
		}

		init();

	}

	private void init() {


		setHeader(0);
		
		com_info =  (CompanyInfo) getIntent().getSerializableExtra("info");

		company_name = (TextView) findViewById(R.id.company_about_name);
		company_name.setText(com_info.getCom_name());
		
		company_web = (TextView) findViewById(R.id.company_about_web);
		company_web.setText(com_info.getCom_web());
		
		company_phone = (TextView) findViewById(R.id.company_about_phone);
		company_phone.setText(com_info.getCom_phone());
		
		company_fax = (TextView) findViewById(R.id.company_about_fax);
		company_fax.setText(com_info.getCom_fax());
		
		company_email = (TextView) findViewById(R.id.company_about_email);
		company_email.setText(com_info.getCom_email());
		
		company_address = (TextView) findViewById(R.id.company_about_address);
		company_address.setText(com_info.getCom_address());

	}


	public void onClick(View v) {
		// TODO Auto-generated method stub
		if (v == header_left) {
			goback();
		} else if (v == header_right) {

		}

	}

}